import java.util.Scanner;

public class VisionRub {
    public static void main(String[] args) {
                int a = 5, b = 10, c = 15;
                int maxOfThree = max3(a, b, c);
                System.out.println("The maximum of " + a + ", " + b + ", and " + c + " is " + maxOfThree);
            }
            public static int max2(int x, int y) {
                return (x > y) ? x : y;
            }

            // 求三个数的最大值，通过调用max2函数
            public static int max3(int x, int y, int z) {
                int maxOfTwo = max2(x, y);
                return max2(maxOfTwo, z);
            }
        }
